.popup-container {
  position: relative;
  width: 400px;
  padding: 0;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.popup-header {
  padding: var(--spacing-4);
  background-color: var(--color-surface-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.popup-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.popup-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.popup-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
}

.popup-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin: 0;
  margin-top: var(--spacing-1);
  line-height: 1.4;
}

.popup-content {
  padding: var(--spacing-4);
}

.popup-section {
  margin-bottom: var(--spacing-3);
}

.popup-section:last-child {
  margin-bottom: 0;
}

.popup-footer {
  padding: var(--spacing-3) var(--spacing-4);
  background-color: var(--color-surface-secondary);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.popup-footer-links {
  display: flex;
  gap: var(--spacing-3);
}

/* Notification styles */
.notification {
  position: absolute;
  top: var(--spacing-4);
  left: var(--spacing-4);
  right: var(--spacing-4);
  z-index: 1000;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--text-base);
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
  cursor: pointer;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification.info {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.notification.error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.notification.success {
  background-color: #dcfce7;
  color: #16a34a;
  border: 1px solid #86efac;
}

/* Style for main toggle */
.popup-section .toggle:not(.toggle-secondary) .toggle-switch {
  background-color: var(--color-surface-tertiary);
  border-color: var(--color-border);
}

.popup-section .toggle:not(.toggle-secondary) .toggle-input:checked + .toggle-switch {
  background-color: #dbeafe; /* Light blue for active state */
  border-color: #93c5fd;
}

.popup-section .toggle:not(.toggle-secondary) .toggle-input:checked + .toggle-switch::after {
  background-color: #3b82f6; /* Blue circle for active state */
}

/* Style for status toggle */
.toggle-secondary .toggle-switch {
  background-color: var(--color-surface-tertiary);
  border-color: var(--color-border);
}

.toggle-secondary .toggle-input:checked + .toggle-switch {
  background-color: #dcfce7; /* Light green for active state */
  border-color: #86efac;
}

.toggle-secondary .toggle-input:checked + .toggle-switch::after {
  background-color: #22c55e; /* Green circle for active state */
}

.popup-section .toggle .toggle-label {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* Disabled toggle for status display */
.toggle-secondary {
  cursor: not-allowed !important;
  opacity: 1 !important; /* Override default disabled opacity */
}

.toggle-secondary .toggle-switch {
  cursor: not-allowed !important;
}
